package com.qk.management.controller;

import com.qk.common.Result;
import com.qk.management.aop.anno.LogAnno;
import com.qk.management.service.ReportOverviewService;
import com.qk.vo.portal.PortalVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author ZgYn
 * @Date 2025/10/15 14:48
 * @Name ReportOverVIewController
 */
@RestController
@RequestMapping
public class ReportOverViewController {

    @Autowired
    private ReportOverviewService reportOverviewService;



    @GetMapping("/report/overview")
    @LogAnno
    public Result overview() {
        PortalVO portalVO = reportOverviewService.overview();
//        PortalVO portalVO = reportOverviewService.overviewByRedis();
        return Result.success(portalVO);
    }
}
